package com.adams.dcxt.action;

import java.util.HashMap;
import java.util.Map;

import net.sf.json.JSONObject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestAction extends BaseAction {
    private static final long serialVersionUID = 1L;

    private String msg;
    private static Logger logger = LoggerFactory.getLogger(TestAction.class);

    public String test() {
        Result  result =  new Result();
        result.setMsg(msg+"  hello!");
        Map map = new HashMap();
        map.put("data", result);
        write(JSONObject.fromObject(map).toString());
        return null;
    }
    
    public String connect(){
        Map map = new HashMap();
        map.put("msg", "成功");
        write(JSONObject.fromObject(map).toString());
        return null;
    }
    
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
